﻿<div ng-controller="HomeController">
    <div ng-show="!status.loggedin" class="form-group">
        <label class="control-label">UserName</label>
        <input class="form-control" ng-model="user.username" placeholder="User Name" /><br />

        <label class="control-label">Password</label>
        <input class="form-control" ng-model="user.password" placeholder="Password" /><br />

        <button ng-click="login()" class="btn btn-primary">Log In</button>

    </div>

    <div ng-show="status.loggedin">
        <h1>Welcome {{userInfo.Username}}</h1>
        <h3>Your email is: {{userInfo.Email}}</h3>
        <button class="btn btn-danger" ng-click="logout()">Log Out</button>
    </div>

    <hr /><hr /><hr />

    <div ng-show="status.loggedin" ng-repeat="x in cTodos">
        <p>{{x.Task}}</p>
    </div>

</div>